<include file="Public/header" />
<include file="Public/workfooter" />
<div data-role="page" >
    <div data-role="header" data-position="fixed" data-tap-toggle="false"data-theme="g">
      <a href="#sharePanel" style="display:inline-block;margin-top:10px;"><i class="fa fa-list " ></i></a>
      <h1>记事本</h1>
    </div>
    <include file="Public/common" />
    <div data-role="main" class="ui-content">
        <div data-role="navbar" >
          <ul>
            <li><a href="#" id="workDivTime"><font ><i class="fa fa-clock-o"></i> 当前：<span id="clickDateSpan"><{$dateNow}></span></font></a></li>
          </ul>
        </div>
        <section id="workDiv" class="side-div">
          <div id="clickDateDiv">
            <if condition="$nowWorkCount eq 1">
              <div class="list-group-item text-center">
                <h4> <{$nowWorkRows[0]['workname']}></h4>
                <h5><small>
                  Lev: <font color="#D9534F"><if condition="$vo.worklevel eq 3">！！！  <elseif condition="$vo.worklevel eq 2"/>！！  <else/>！  </if></font>
                </small></h5>
                <hr>
                <p><{$nowWorkRows[0]['workother']}></p>
              </div>
              <elseif condition="$nowWorkCount gt 1"/>
                  <volist name="nowWorkRows" id="vo">
                    <a class="list-group-item"  role="button" data-toggle="collapse" href="#workid<{$vo.workid}>" aria-expanded="false" aria-controls="workid<{$vo.workid}>"><span ><{$vo.workname}></span> <font color="#D9534F"><if condition="$vo.worklevel eq 3">！！！  <elseif condition="$vo.worklevel eq 2"/>！！  <else/>！  </if></font><i class="fa fa-plus pull-right"></i></a>
                    <div class="collapse" id="workid<{$vo.workid}>">
                        <div class="well">
                          <{$vo.workother}>
                        </div>
                    </div>
                  </volist> 
              <else/>
                <div class="panel text-center" id="workDivText">
                  <font class="noWork"><i class="fa fa-calendar-times-o"></i>  暂无记事</font>
                </div>
            </if>
        </div>
        </section>
         <form name="CLD" class="content">
          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="datetable table  table-striped ">
              <thead>
              <tr>
              <td colSpan=7><span>年</span>
                  <select id="selectSY" name="SY" onchange="changeCld();" style="font-SIZE: 9pt">
                  <script>
                      for(i=1900;i<2050;i++) document.write('<option>'+i+'</option>');
                  </script>
                   </select><span>月</span>
                   <select id="selectSM"name="SM" onchange="changeCld();" style="font-SIZE: 9pt">
                  <script>
                      for(i=1;i<13;i++) document.write('<option>'+i);
                  </script>
                  </select>
                  <span class="btn btn-primary btn-xs width100" id="returnCalendar">返回今日</span>
                  <span id="clockLogin">
                  </span>
                  <span id="GZ"></span>
                </td>
              </tr>
              </thead>
              <tbody >
                <tr style="background:#eee;">
                  <td width="54">日</td>
                  <td width="54">一</td>
                  <td width="54">二</td>
                  <td width="54">三</td>
                  <td width="54">四</td>
                  <td width="54">五</td>
                  <td width="54">六</td>
                </tr>            
                <script>
                var gNum;
                for(i=0;i<6;i++) {
                   document.write('<tr align="center" id="calendarTr">' );
                   for(j=0;j<7;j++) {
                      gNum = i*7+j;
                      document.write('<td  class="calendarTd" id="GD' + gNum +'"><font  class="font1" id="SD' + gNum +'"  size=2 face="Arial Black"');
                      if(j == 0) document.write('color="red"');
                      if(j == 6) document.write('color="#000080"');
                      document.write('></font><br/><span id="LD' + gNum + '" size=2 style="font-size:9pt"></span></td>');
                   }
                   document.write('</tr>');
                }
               </script>
             </tbody>
          </table>
        </form>
      <a class="btn btn-default width100" id="oldWorkDivBtn" onclick="oldWorkDivClick();" data-ajax="false">日前 <i class="fa fa-location-arrow"></i></a>
      <hr>
      <div id="oldWorkDiv">
        <if condition="$oldHtmlCount eq 0">
            <div class="col-md-12 text-center">
             <h4><i class="fa fa-warning "></i> 无记事</h4>
            </div>
        <else />
        <div id="oldtimeline">
            <foreach name="oldHtmlRows" item="vo">
                <div class="timeline-item">
                    <div class="timeline-icon">
                    </div>
                    <div class="timeline-content <if condition='$key%2 eq 0'><else/>right</if>">
                      <h2><{$vo.worktime}></h2>
                      <foreach name="vo" item="voItem">
                      <if condition="$voItem.workname|strlen gt 1">
                      <else/>
                      <a class="list-group-item" role="button" data-toggle="collapse" href="#oldItem<{$voItem.workid}>" aria-expanded="false" aria-controls="oldItem<{$voItem.workid}>"><span><{$voItem.workname}></span>  <font color="#D9534F"><if condition="$voItem.worklevel eq 3">！！！  <elseif condition="$voItem.worklevel eq 2"/>！！  <else/>！  </if></font><i class="fa fa-plus pull-right"></i></a>
                        <div class="collapse" id="oldItem<{$voItem.workid}>">
                          <div class="well">
                          <{$voItem.workother}>
                          </div>
                        </div>
                      </if>
                      </foreach>
                    </div>
                </div>
            </foreach>
        </div>
      </if>
      </div><!--old div end-->
      <hr>
        <div class="FutureWorkTitle text-center">
          <h4>目前</h4>
          <hr>
        </div>
        <if condition="$futureHtmlCount eq 0">
          <div class="col-md-12 text-center">
             <h4><i class="fa fa-warning "></i> 无记事</h4>
          </div>
        <else />
          <div id="timeline">
            <foreach name="futureHtmlRows" item="vo">
                <div class="timeline-item">
                    <div class="timeline-icon">
                    </div>
                    <div class="timeline-content <if condition='$key%2 eq 0'><else/>right</if>">
                      <h2><{$vo.worktime}></h2>
                      <foreach name="vo" item="voItem">
                      <if condition="$voItem.workname|strlen gt 1">
                      <else/>
                      <a class="list-group-item" role="button" data-toggle="collapse" href="#futureItem<{$voItem.workid}>" aria-expanded="false" aria-controls="futureItem<{$voItem.workid}>"><span><{$voItem.workname}></span>  <font color="#D9534F"><if condition="$voItem.worklevel eq 3">！！！  <elseif condition="$voItem.worklevel eq 2"/>！！  <else/>！  </if></font><i class="fa fa-plus pull-right"></i></a>
                        <div class="collapse" id="futureItem<{$voItem.workid}>">
                          <div class="well">
                          <{$voItem.workother}>
                          </div>
                        </div>
                      </if>
                      </foreach>
                    </div>
                </div>
            </foreach>
          </div>
        </if>
  </div>
<script>
  initial();
</script>

<include file="Public/footer"/>

